<include file="Public:header" />
			<include file="Public:menu" />
			<div id="right">
				<div class="top"></div>
				<php>
					if($u == $userInfo->id){
				</php>
				<div class="app_right_banner">	
					<div class="app_face">
						<img src="__PUBLIC__/Uploads/face/small/{$userInfo:faceimg}"/>
					</div>
					<div class="app_userinfo">
						<p class="app_module">活动</p>
						<p class = "app_module_back"><a href="__APP__/user">返回我的空间</a></p>
					</div>
				</div>
				<div class="app_right_menu">
					<div class="arm_2">
						<a href="__URL__">活动最新话题</a>
					</div>
					<div class="arm_1">
						我的活动					
					</div>
					<div class="arm_2">
						<a href="__APP__/groups">所有活动</a>					
					</div>
					<div class="arm_2">
						<a href="__URL__/creategroup">创建新活动</a>					
					</div>
				</div>
				<php>
					}else{
					$uname = getUsernameByUserid($u);
				</php>
				<div class="app_right_banner">	
					<div class="app_face">
						<img src="__PUBLIC__/Uploads/face/small/{$userInfo:faceimg}"/>
					</div>
					<div class="app_userinfo">
						<p class="app_module">{$uname}的活动</p>
						<p class = "app_module_back"><a href="__APP__/user">查看{$uname}的空间</a></p>
					</div>
				</div>
				<div class="app_right_menu">
					<div class="arm_1">
						{$uname}的活动					
					</div>
					<div class="arm_2">
						<a href="__URL__/group">我的活动</a>
					</div>
					<div class="arm_2">
						<a href="__URL__/group/u/all">所有活动</a>					
					</div>
					<div class="arm_2">
						<a href="__URL__/creategroup">创建新活动</a>					
					</div>
				</div>
				<php>}</php>
				<div class="app_right_count">
					共{$groupcount}个活动 
				</div>
				<div>
					<volist name='grouplist' id='group'>
					<div class="grouplist">
						<ul>
							<li class="li"><a href='__APP__/showgroup/{$group:id}'><img src='__PUBLIC__/Uploads/group/{$group:img}' width="100px"/></a></li>
							<li class="li">
								<ul>
									<li class="groupname"><a href='__APP__/showgroup/{$group:id}'>{$group:name}</a></li>
									<li><a href="__URL__/groupuser/id/{$group:id}">{$group:usernum}个成员</a></li>
									<li><a href="__APP__/showboard/{$group:id}">{$group:topicnum}个主题</a></li>
									<php>
										if($grouptype[$group->id] > 1){
									</php>
										<li><a href="__URL__/editgroup/id/{$group:id}">设置活动</li>
									<php>
										}
									</php>
								</ul>
							</li>
						</ul>
					</div>
					</volist>
				</div>
				<div>
					{$page}
				</div>
			</div>
<include file="Public:footer" />